package com.hushan.elevator.model;

import jakarta.persistence.Column;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Entity
@Data
@Table(name = "auth_user_dept")
@AllArgsConstructor
@NoArgsConstructor
public class UserDept {

    @EmbeddedId
    private UserDeptPK userDeptPK;
    @Column(name = "created_by")
    private int createdBy;
    @Column(name = "created_time")
    private LocalDateTime createdTime;

    @Column(name = "updated_time")
    private LocalDateTime updatedTime;
}
